<?php
/**
* File that sets view of edit users page.
* @package busmap
*/
?>
<?php if(count($this->entries)){ ?>
	<h3>Kasutajad</h3>
	<table class="data-listing">
		<tr>
			<th>Kasutajanimi</th>
			<th>Täisnimi</th>
			<th>E-mail</th>
			<th>Lisatud saidile</th>
		</tr>
		<tr>
		    <?php foreach ($this->entries as $entry): ?>
			<td><?php echo $this->escape($entry->username) ?></td>
			<td><?php echo $this->escape($entry->fullname) ?></td>
			<td>
				<a href="mailto:<?php echo $this->escape($entry->email) ?>">
				     <?php echo $this->escape($entry->email) ?>
				</a>
			</td>
			<td><?php echo date('d.m.Y', strtotime($this->escape($entry->addTime))) ?></td>
		    <?php endforeach ?>
		</tr>
	</table>
<?php }else{ ?>
	Hetkel kasutajad puuduvad andmebaasis.
<?php } ?>